package com.mega.fe.mixins;

import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.Gui;
import net.minecraft.client.renderer.entity.ItemRenderer;
import net.minecraft.resources.ResourceLocation;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Mutable;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(Gui.class)
public class GuiMixin {

    @Shadow
    @Final
    @Mutable
    protected static ResourceLocation WIDGETS_LOCATION;

    @Shadow
    @Final
    @Mutable
    protected static ResourceLocation GUI_ICONS_LOCATION;

    @Inject(method = "<init>", at = @At("RETURN"))
    private void init(Minecraft p_232355_, ItemRenderer p_232356_, CallbackInfo ci) {
        WIDGETS_LOCATION = new ResourceLocation("fe", "textures/widgets.png");

        //GUI_ICONS_LOCATION = new ResourceLocation("fe", "textures/ico");
    }

}
